package cc.wsyw126.java.service;

/**
 * Created by junpeng.yang on 16/8/8.
 */
public class Generator<A,B> {
    private A a;

    public void setA(A a) {
        this.a = a;
    }

    public void setB(B b) {
        this.b = b;
    }

    private B b;

    public A getA() {
        return a;
    }

    public B getB() {
        return b;
    }

    public Generator(A a,B b){
        this.a = a;
        this.b = b;
    }

    public static void main(String[] args) {
        Generator<Integer,Integer> here = new Generator(12,12);
        System.out.println(here.a+here.b);
    }
}
